package com.tjlg.controller;

import com.tjlg.domain.Student;
import com.tjlg.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@Controller
public class StudentController {
    @Autowired
    private StudentService studentService;
    @RequestMapping(value = "/student/{userid}")
    public @ResponseBody Object student(@PathVariable Integer userid ){
        Student student =studentService.selectByPrimaryKey(userid);
        return student;
    }

}
